<div class="layui-header header header-doc">
        <a class="kaisou-logo layui-nav-item layui-hide-xs" href="/"><span>首页</span></a>
        <a class="logo " href="/"><img src="http://shop.geekadpt.cn/images/kaisou/logo.png" alt="layui"></a>
        <ul class="layui-nav">
            @guest
                <li class="layui-nav-item layui-hide-sm layui-show-xs">
                    <a href="javascript:;"><!--<span class="layui-badge-dot" style="margin: -5px 0 0 -15px;"></span>-->分类<span class="layui-nav-more"></span></a>
                    <dl class="layui-nav-child layui-anim layui-anim-upbit">
                        <dd lay-unselect="">
                            <a href="" target="_blank">书籍</a>
                        </dd>
                        <dd lay-unselect="">
                            <a href="" target="_blank">3C数码</a>
                        </dd>
                        <dd lay-unselect="">
                            <a href="" target="_blank">生活用品</a>
                        </dd>
                        <dd lay-unselect="">
                            <a href="" target="_blank">鞋服美妆</a>
                        </dd>
                        <dd lay-unselect="">
                            <a href="" target="_blank">其它</a>
                        </dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="{{ route('login') }}">登录</a>
                </li>
                <li class="layui-nav-item">
                    <a href="{{ route('register') }}">注册</a>
                </li>
            @else
            <li class="layui-nav-item layui-hide-sm layui-show-xs">
                <a href="javascript:;"><!--<span class="layui-badge-dot" style="margin: -5px 0 0 -15px;"></span>-->分类<span class="layui-nav-more"></span></a>
                <dl class="layui-nav-child layui-anim layui-anim-upbit">
                    <dd lay-unselect="">
                        <a href="//fly.layui.com/extend/" target="_blank">书籍</a>
                    </dd>
                    <dd lay-unselect="">
                        <a href="//fly.layui.com/extend/" target="_blank">3C数码</a>
                    </dd>
                    <dd lay-unselect="">
                        <a href="//fly.layui.com/extend/" target="_blank">生活用品</a>
                    </dd>
                    <dd lay-unselect="">
                        <a href="//fly.layui.com/extend/" target="_blank">鞋服美妆</a>
                    </dd>
                    <dd lay-unselect="">
                        <a href="//fly.layui.com/extend/" target="_blank">其它</a>
                    </dd>
                </dl>
            </li>

                <li class="layui-nav-item layui-hide-xs">
                    <a href="{{route('cart.index')}}">购物车<span class="cart-item-count layui-badge " data-itemscount="{{ \App\Http\Controllers\CartController::getCartCount()}}">{{ \App\Http\Controllers\CartController::getCartCount()}}</span></a>
                </li>
            <li class="layui-nav-item layui-hide-xs" lay-unselect="">
                <a href="">我的订单<span class="layui-badge-dot" style="margin-top: -5px;"></span></a>
            </li>
                <li class="layui-nav-item">
                    <a href="javascript:;"><img @if(Auth::user()->id==7)src="http://shop.geekadpt.cn/images/kaisou/xiaoyun.png" @else src="http://shop.geekadpt.cn/images/kaisou/avatar.jpg" @endif class="layui-nav-img"> {{ Auth::user()->name }}</a>
                    <dl class="layui-nav-child">
                        <dd><a href="{{ route('user_addresses.index') }}">修改收货信息</a></dd>
                        <dd><a href="{{ route('products.favorites') }}">我的收藏</a></dd>
                        <dd class="layui-hide-sm layui-show-xs"> <a href="">我的订单<span class="layui-badge-dot" style="margin-top: -5px;"></span></a></dd>
                        <dd class="layui-hide-sm layui-show-xs"> <a href="{{route('cart.index')}}">购物车<span class="cart-item-count layui-badge" data-itemscount="{{ \App\Http\Controllers\CartController::getCartCount()}}">{{ \App\Http\Controllers\CartController::getCartCount()}}</span></a></dd>
                        <dd><a class="dropdown-item" id="logout" href="#"
                               onclick="event.preventDefault();document.getElementById('logout-form').submit();">退出登录</a>
                            <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
                                {{ csrf_field() }}
                            </form>
                        </dd>
                    </dl>
                </li>
            @endguest
        </ul>
</div>
